{#
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at https://mozilla.org/MPL/2.0/.
#}

{% extends 'newsletter/base.html' %}

{% block page_title %}{{ ftl('newsletters-mozilla-newsletter') }}{% endblock %}

{% block page_css %}
  {{ css_bundle('protocol-newsletter') }}
{% endblock %}

{% block content %}
<main>
  <div class="mzp-l-content mzp-t-content-sm">
    {% if ftl_has_messages('multi-newsletter-form-title', 'multi-newsletter-form-desc', 'multi-newsletter-form-checkboxes-legend') %}
      {{ email_newsletter_form(
        newsletters='mozilla-foundation' if switch('foundation-separate-newsletter') else 'mozilla-foundation, mozilla-and-you',
        button_class='button-dark'
      ) }}
    {% else %}
      {{ email_newsletter_form(
        title=ftl('newsletters-read-all-about-it-in-our-newsletter'),
        desc=ftl('newsletters-subscribe-here-to-keep-current'),
        newsletters='mozilla-foundation'
      ) }}
    {% endif %}
  </div>
</main>
{% endblock %}

{% block js %}
  {{ js_bundle('newsletter') }}
{% endblock %}
